<%@ page import="java.util.Map" %>
<%@ page import="Person.LocalUserInfo" %>
<%@ page import="Person.ReadFile" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link href="./information/information.css" rel="stylesheet" type="text/css">
</head>
<body>
<%
    String str;
    Map<String,String> infoMap = (Map<String, String>) request.getSession().getAttribute("user");
    if(infoMap == null) ((HttpServletResponse) response).sendRedirect("./error.jsp");
    String username1 = infoMap.get("username");
    //根据工号查找用户
    LocalUserInfo user = new ReadFile().find(username1);
%>

<div class="pay_container clearfix" id="personal">
    <div class="leftArea">
        <h3 class="tit">个人中心</h3>
        <ul class="payLeftBar">
            <li><a href="/info" class="payBar6 on"><i></i><span>账号概况</span><em></em></a></li>
        </ul>
    </div><div class="middleArea">
    <div class="not">
        <div class="hr_30"></div>
        <div class="hr_30"></div>
        <div class="tit">
            账号详情 <i class="tips"><div class="account_pop"></div></i>
        </div>
        <div class="item">
            <div class="dl clearfix">
                <div class="dt">Username</div>
                <% String username=infoMap.get("username");%>
                <div class="dd"><strong><%=username%></strong></div>
            </div>
            <div class="dl clearfix">
                <div class="dt">name</div>
                <% String name=infoMap.get("name");%>
                <div class="dd"><%=name%></div>
            </div>
            <div class="dl clearfix">
                <div class="dt">group</div>
                <% String group=infoMap.get("group");%>
                <div class="dd"><%=group%></div>
            </div>
            <div class="dl clearfix">
                <div class="dt">Faculty_title</div>
                <% String Faculty_title=infoMap.get("faculty_title");%>
                <div class="dd"><%=Faculty_title%></div>
            </div>
        </div>
        <div class="hr_30"></div>

    </div>
</div>
    <div class="rightArea">
        <div class="tit"><span>我的头像</span></div>
        <div class="gameBox">
            <img src="information/<%=user.getHead_img()%>">
            <p> </p>
            <div class="btns clearfix">
                <a class="fl home" href="http://localhost:8080/logout">退出登录</a>
                <a class="fr down" href="">修改头像</a>
            </div>
        </div>
    </div>
</div>
</body>
</html>
